import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 高生平
 * Date: 2025-09-12
 * Time: 20:33
 */

//实现一个方法 transform, 以数组为参数, 循环将数组中的每个元素 乘以 2 ,
// 并设置到对应的数组元素上. 例如 原数组为 {1, 2, 3}, 修改之后为 {2, 4, 6}
public class Test {

    public static void transform (int[] arr,int len) {
        for (int i = 0; i < len; i++) {
            arr[i] *= 2;
        }
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        int[] array = new int[k];
        for (int i = 0; i < k; i++) {
            array[i] = sc.nextInt();
        }
        System.out.println("原数组：" + Arrays.toString(array));
        transform(array, array.length);
        System.out.println("设置后数组：" + Arrays.toString(array));
    }
}
